home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- class AtomicLongCSImpl extends AtomicLong {
- private volatile long value;
-
- protected AtomicLongCSImpl(long var1) {
- this.value = var1;
- }
-
- public long get() {
- return this.value;
- }
-
- public native boolean attemptUpdate(long var1, long var3);
-
- public boolean attemptSet(long var1) {
- return this.attemptUpdate(this.value, var1);
- }
-
- public synchronized boolean attemptIncrememt() {
- return this.attemptUpdate(this.value, this.value + 1L);
- }
-
- public synchronized boolean attemptAdd(long var1) {
- return this.attemptUpdate(this.value, this.value + var1);
- }
- }
-